package com.ruoyi.iot.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.iot.mapper.FacDevicesJobMapper;
import com.ruoyi.iot.domain.FacDevicesJob;
import com.ruoyi.iot.service.IFacDevicesJobService;

/**
 * 设备数据解析Service业务层处理
 * 
 * @author rww
 * @date 2024-06-26
 */
@Service
public class FacDevicesJobServiceImpl implements IFacDevicesJobService 
{
    @Autowired
    private FacDevicesJobMapper facDevicesJobMapper;

    /**
     * 查询设备数据解析
     * 
     * @param id 设备数据解析主键
     * @return 设备数据解析
     */
    @Override
    public FacDevicesJob selectFacDevicesJobById(Long id)
    {
        return facDevicesJobMapper.selectFacDevicesJobById(id);
    }

    /**
     * 查询设备数据解析列表
     * 
     * @param facDevicesJob 设备数据解析
     * @return 设备数据解析
     */
    @Override
    public List<FacDevicesJob> selectFacDevicesJobList(FacDevicesJob facDevicesJob)
    {
        return facDevicesJobMapper.selectFacDevicesJobList(facDevicesJob);
    }

    /**
     * 新增设备数据解析
     * 
     * @param facDevicesJob 设备数据解析
     * @return 结果
     */
    @Override
    public int insertFacDevicesJob(FacDevicesJob facDevicesJob)
    {
        return facDevicesJobMapper.insertFacDevicesJob(facDevicesJob);
    }

    /**
     * 修改设备数据解析
     * 
     * @param facDevicesJob 设备数据解析
     * @return 结果
     */
    @Override
    public int updateFacDevicesJob(FacDevicesJob facDevicesJob)
    {
        return facDevicesJobMapper.updateFacDevicesJob(facDevicesJob);
    }

    /**
     * 批量删除设备数据解析
     * 
     * @param ids 需要删除的设备数据解析主键
     * @return 结果
     */
    @Override
    public int deleteFacDevicesJobByIds(Long[] ids)
    {
        return facDevicesJobMapper.deleteFacDevicesJobByIds(ids);
    }

    /**
     * 删除设备数据解析信息
     * 
     * @param id 设备数据解析主键
     * @return 结果
     */
    @Override
    public int deleteFacDevicesJobById(Long id)
    {
        return facDevicesJobMapper.deleteFacDevicesJobById(id);
    }
}
